const express = require('express')

const app = express()

// http://localhost:3000/test.js
// http://localhost:3000/xxx/test.js
// http://localhost:3000/test
app.use(express.static('public'))

app.get('/', function (req, res) {
  res.send('响应')
})

app.listen(3000, 回调)
